package com.dc.refactoring._2_在对象之间搬移特性._4_InlineClass.newObject;

/**
 * Description: 将类内联化_内联化后的 Person 类
 * @author: gdc
 * @date: 2020/11/15
 * @version 1.0
 */
public class Person {
    /**
     * 名称
     */
    private String name;
    /**
     * 电话号码类
     */
    private String officeNumber;
    /**
     * 区域类
     */
    private String officeAreaCode;

    public String getTelephoneNumber() {
        return "(" + officeAreaCode + ")" + officeNumber;
    }

    public String getOfficeNumber() {
        return officeNumber;
    }

    public void setOfficeNumber(String officeNumber) {
        this.officeNumber = officeNumber;
    }

    public String getOfficeAreaCode() {
        return officeAreaCode;
    }

    public void setOfficeAreaCode(String officeAreaCode) {
        this.officeAreaCode = officeAreaCode;
    }
}
